﻿
using Mengsk.ProxyDelivery.Print.Domain;
using Mengsk.ProxyDelivery.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace Mengsk.ProxyDelivery.Print.ViewModels
{
    class PrintTemplateItemTypeViewModel
    {
        public string Title { get; protected set; }

        public PrintTemplateItemTypes Type { get; protected set; }

        public static PrintTemplateItemTypeViewModel[] GetAllTypes()
        {
            var objs = Enum.GetValues(typeof(PrintTemplateItemTypes)).OfType<PrintTemplateItemTypes>().Select(obj => new PrintTemplateItemTypeViewModel { Type = obj, Title = EnumUtil.GetEnumValueDescription(obj) }).ToArray();
            return objs;
        }
    }
}
